/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GameEvents;

/**
 *
 * @author avia
 */
public class DiceEvents extends GameEvents {
     Integer FirstDiceResult=0;
    Integer SecondDiceResult=0;
 public DiceEvents  (String GameName,Integer EventID,Integer TimeoutCount,Integer EventType,String PlayerName
            ,String EventMessage,Integer BoardSquareID,Integer FirstDiceResult,Integer SecondDiceResult)
    {
           super(GameName,EventID,TimeoutCount,EventType,PlayerName ,EventMessage,BoardSquareID);
           this.FirstDiceResult=FirstDiceResult;
           this.SecondDiceResult=SecondDiceResult;
     }
     public DiceEvents  (String GameName,Integer EventID,Integer TimeoutCount,Integer EventType,String PlayerName
            ,String EventMessage,Integer BoardSquareID)
    {
         super(GameName,EventID,TimeoutCount,EventType,PlayerName ,EventMessage,BoardSquareID);
     }
     @Override
     public int getFirstDiceResult() {
        return FirstDiceResult;
    }
 @Override
    public int getSecondDiceResult() {
        return SecondDiceResult;
    }
 //used in case of non automatic cubes
    public void CompleteEvent(Integer FirstDiceResult,Integer SecondDiceResult)
    {
           this.FirstDiceResult=FirstDiceResult;
           this.SecondDiceResult=SecondDiceResult;
    }
}
